package com.lagou.zk;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JDBCParam {
    private String url;
    private String name;
    private String password;

    private static Logger logger = LoggerFactory.getLogger(JDBCParam.class);


    public JDBCParam(String url, String name, String password) {
        this.url = url;
        this.name = name;
        this.password = password;
    }

    public JDBCParam() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "JDBCParam{" +
                "url='" + url + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public static void main(String[] args) {
        JDBCParam jdbcParam = new JDBCParam("jdbc:mysql://linux122:3306/azkaban?characterEncoding=utf-8&useSSL=false", "azkaban", "azkaban");
        logger.info("this is jdbcParam: {} ", jdbcParam.toString());
    }
}
